/**
 * User: Ruslan Mikhaylenko mirunet@gmail.com
 * Date: 01.05.13
 * Time: 21:27
 */


public class Jmplayer {

    public static void main(String[] args) {

        if (args.length == 0) {
            StoreOptions.showUsage();
        } else {
            switch (ParseOptions.parseOption(args[0], args.length)) {
                case PLAYLIST:
                    Mplayer.runMplayer(args[1], 0);
                    break;
                case PLAYLIST_SLEEPMODE:
                    Mplayer.runMplayer(args[1], Integer.parseInt(args[2]));
                    break;
                case CREATELIST:
                    Mplayer.createPlaylist(args[1], args[2]);
                    break;
                case SHOWPLAYLISTS:
                    Mplayer.show_playlist();
                    break;
                default:
                    StoreOptions.showUsage();
            }
        }
    }
}

